package com.linkhub.oms.admin.modules.weighing.domain.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Jaycle
 * @version 1.0.0
 * @Description WeighingPackagePicParam.java
 * @createTime 2024/10/02 21:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "WeighingPackagePicParam", description = "WeighingPackagePicParam")
public class WeighingPackagePicParam implements Serializable {

    @ApiModelProperty(value = "必填，包裹条码信息", required = true)
    @NotBlank(message = "{weighting.package.ticketsNum.notBlank}")
    @JsonProperty("ticketsNum")
    private String ticketsNum;

    @ApiModelProperty(value = "必填，图片base64编码", required = true)
    @NotBlank(message = "{weighting.package.pic.notBlank}")
    @JsonProperty("picture")
    private String picture;

    @ApiModelProperty(value = "非必填，仓库编号")
    @JsonProperty("whs_id")
    private String whsId;

    @ApiModelProperty(value = "非必填，设备编号")
    @JsonProperty("machine_id")
    private String machineId;

}
